<section class="title">
	<h4><?php echo lang('routes.custom_routes'); ?></h4>
</section>

<section class="item">

<?php if (!empty($routes)): ?>

<table class="table-list">
	<thead>
		<tr>
		    <th><?php echo lang('routes.route_key');?></th>
		    <th><?php echo lang('routes.route_value');?></th>
		    <th></th>
		</tr>
	</thead>
	<tbody>
	<?php foreach ($routes as $route):?>
		<tr>
			<td><?php echo $route->route_key; ?></td>
			<td><?php echo $route->route_value; ?></td>
			<td class="actions"> 
				<a href="<?php echo site_url('admin/routes/edit_route/'.$route->id);?>" class="button edit">Edit</a>
				<a href="<?php echo site_url('admin/routes/delete_route/'.$route->id);?>" class="confirm button delete">Delete</a>
			</td> 
		</tr>
	<?php endforeach;?>
	</tbody>
</table>

<?php echo $pagination['links']; ?>

<?php else: ?>
	<p><?php echo lang('routes.no_routes');?></h2></p>
<?php endif;?>

</section>